﻿<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="运单维护" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="selectBills(0)">选择发运交接单</button>
                    <button class="btn btn-operate" ng-click="auditBillBatch()">批量审核</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                            ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="false">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl"
                                    download-param="exportParam.sectionParam" download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition"
                                    download-duration="3" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs"
                        ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="物流运单号"
                            ng-model="condition.wayBillNo">
                        <span class="input-group-addon cursor-pointer" ng-click="search()">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search()"
                reset-data="reset()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">客户名称：</label>
                        <input class="form-control" type="text" ng-model="condition.dealerOrgName">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据状态：</label>
                        <select class="form-control" ng-model="condition.status">
                            <option value="">请选择</option>
                            <option value=0>保存</option>
                            <option value=1>已提交</option>
                            <option value=2>审核通过</option>
                            <option value=-1>审核拒绝</option>
                            <option value=-2>已删除</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据类型：</label>
                        <select class="form-control" ng-model="condition.billType">
                            <option value="">请选择</option>
                            <option value="XGFT">发货通知单</option>
                            <option value="XGSC">三包出库单</option>
                            <option value="XGQD">区域调拨单</option>
                            <option value="XGFC">其它出库单</option>
                            <option value="XSCK">销售赠送出库单</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">运输方式：</label>
                        <select class="form-control" ng-model="condition.shippingMethodId"
                            ng-options="item.code as item.name for item in sendMethodList">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">发货状态：</label>
                        <select class="form-control" ng-model="condition.deliveryStatus">
                            <option value="">请选择</option>
                            <option value=0>未发货</option>
                            <option value=1>已发货</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">单据号：</label>
                        <input class="form-control" type="text" ng-model="condition.businessOrderNo">
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>制单时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateStart = !showDateStart"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showDateEnd = !showDateEnd"
                            ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')"
                            is-open="showDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>    
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"><span>审核时间</span>：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.auditDateStart"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showSHDateStart = !showSHDateStart"
                            ng-change="checkDate(condition, 'auditDateStart', 'auditDateEnd')"
                            is-open="showSHDateStart" close-text="关闭" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.auditDateEnd"
                            datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="showSHDateEnd = !showSHDateEnd"
                            ng-change="checkDate(condition, 'auditDateStart', 'auditDateEnd')"
                            is-open="showSHDateEnd" close-text="关闭" modal-size="small" readonly>
                    </div>                     
                    <div class="form-group clearfix">
                        <label class="control-label">零件号：</label>
                        <input class="form-control" type="text" ng-model="condition.materialsNosList">
                    </div>                                    
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tableConfig" col-fixed="true"
                has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <thead>
                                <tr>
                                    <th width="40" class="text-center border-l-none th-check">
                                        <div yb-check-box yb-checked="markInfo.allCheckedWayBill" yb-click="selectAll(dataList, 'WayBill')"></div>
                                    </th>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.fixedWidth"
                                            fixed-width="tbStyle.scrollLeft"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="tableConfig.scrollWidth">
                                        </div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tableConfig.fixedWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="curRow($index)">
                                    <td width="40" class="text-center border-l-none">
                                        <div yb-check-box yb-checked="item.isChecked"
                                            yb-click="selectSingle(item, dataList, 'WayBill')"></div>
                                    </td>
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !!itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <div class="font-0">
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="editData(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenanceEdit||item.status==-2||item.status==1||item.status==2"
                                                title="{{!btnPermission.waybillMaintenanceEdit?'无权限执行此操作':''}}">编辑</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="modifyData(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenanceChange||item.status==-2||item.status==1||item.status==2||item.shippingMethodId!='0001'"
                                                title="{{!btnPermission.waybillMaintenanceChange?'无权限执行此操作':''}}">变更</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="printSingle(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenancePrint"
                                                title="{{!btnPermission.waybillMaintenancePrint?'无权限执行此操作':''}}">打印</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="delData(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenanceDel||item.status!=0"
                                                title="{{!btnPermission.waybillMaintenanceDel?'无权限执行此操作':''}}">删除</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="auditData(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenanceAudit||item.status!==1"
                                                title="{{!btnPermission.waybillMaintenanceAudit?'无权限执行此操作':''}}">审核</button>
                                            <button class="btn btn-operate m-r-xs"
                                                ng-click="deliveryGoods(item.id)"
                                                ng-disabled="!btnPermission.waybillMaintenanceShip||item.status==-2||item.deliveryStatus==1"
                                                title="{{!btnPermission.waybillMaintenanceShip?'无权限执行此操作':''}}">发货</button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.scrollLeft">
                        <table class="table-fixed border-none" width="{{tableConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in dataList track by $index"
                                    ng-class="{'row-selected': $index === markInfo.curRow}"
                                    ng-click="selectRow($index)">
                                    <td class="spill-dots" ng-repeat="itemCol in tableConfig.tableCol track by $index"
                                        width="{{itemCol.width}}" ng-show="!!itemCol.isShow && !itemCol.isFixed"
                                        title="{{item[itemCol.dataField]}}">
                                        <span ng-if="!itemCol.clickFn">{{item[itemCol.dataField]}}</span>
                                        <a ng-if="!!itemCol.clickFn" class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)">
                                            {{item[itemCol.dataField]}}
                                        </a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>

        <!-- 选择发运交接单、选择三包出库单、新增 -->
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="clearfix" ng-show="curStep.val == 0">
                <div class="row wrapper-y-sm">
                    <div class="search-bar wrapper-none">
                        <div class="normal-search clearfix mid-size" ng-if="tabFlag.type==0">
                            <label class="control-label">业务单号：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="billCondition.businessOrderNo">
                            <span class="btn btn-primary" ng-click="billSearch()">搜索</span>
                        </div>
                        <div class="normal-search clearfix" ng-if="tabFlag.type==1">
                            <label class="control-label">收货人：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="billCondition.receiverName">
                            <label class="control-label">服务人员：</label>
                            <input type="text" class="form-control m-r-sm" ng-model="billCondition.serviceName">
                            <span class="btn btn-primary" ng-click="billSearch()">搜索</span>
                        </div>
                    </div>
                </div>
                <table class="table">
                    <thead>
                        <tr ng-if="tabFlag.type==0">
                            <th width="160">发运交接单号</th>
                            <th>客户代码</th>
                            <th>客户名称</th>
                            <th>单据类型</th>
                            <th>发运方式</th>
                            <th>承运商</th>
                            <th width="140">发货日期</th>
                            <th>出库状态</th>
                            <th>创建人</th>
                            <th>调度员</th>
                            <th width="140">制单时间</th>
                            <th width="60">操作</th>
                        </tr>
                        <tr ng-if="tabFlag.type==1">
                            <th width="40" class="text-center border-l-none th-check">
                                <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(billDataList, 'Bill')"></div>
                            </th>
                            <th>三包出库单号</th>
                            <th>服务单号</th>
                            <th>CRM单据号</th>
                            <th>服务人员</th>
                            <th>服务网点</th>
                            <th>收货人</th>
                            <th>收货地址</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="item in billDataList track by $index" ng-if="tabFlag.type==0">
                            <td class="spill-dots" title="{{item.businessOrderNo}}">{{item.businessOrderNo}}</td>
                            <td class="spill-dots" title="{{item.dealerOrgId}}">{{item.dealerOrgId}}</td>
                            <td class="spill-dots" title="{{item.dealerOrgName}}">{{item.dealerOrgName}}</td>
                            <td class="spill-dots" title="{{item.billType|orderType}}">{{item.billType|orderType}}</td>
                            <td class="spill-dots" title="{{item.shippingMethod}}">{{item.shippingMethod}}</td>
                            <td class="spill-dots" title="{{item.carrierOrgName}}">{{item.carrierOrgName}}</td>
                            <td class="spill-dots" title="{{item.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">{{item.deliveryDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>
                            <td class="spill-dots" title="{{item.outStatus}}">{{item.outStatus|ProgressStatus:'outDepot'}}</td>
                            <td class="spill-dots" title="{{item.createName}}">{{item.createName}}</td>
                            <td class="spill-dots" title="{{item.dispatcherName}}">{{item.dispatcherName}}</td>
                            <td class="spill-dots" title="{{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}">{{item.createDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</td>
                            <td><button class="btn btn-operate" ng-click="orderSelectSingle(0,item.businessOrderNo)">选择</button></td>
                        </tr>
                        <tr ng-repeat="item in billDataList track by $index" ng-if="tabFlag.type==1">
                            <td width="40" class="text-center border-l-none">
                                <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, billDataList, 'Bill')"></div>
                            </td>
                            <td class="spill-dots" title="{{item.businessOrderNo}}">{{item.businessOrderNo}}</td>
                            <td class="spill-dots" title="{{item.serviceNo}}">{{item.serviceNo}}</td>
                            <td class="spill-dots" title="{{item.crmOrder}}">{{item.crmOrder}}</td>
                            <td class="spill-dots" title="{{item.serviceName}}">{{item.serviceName}}</td>
                            <td class="spill-dots" title="{{item.serviceSite}}">{{item.serviceSite}}</td>
                            <td class="spill-dots" title="{{item.receiverName}}">{{item.receiverName}}</td>
                            <td class="spill-dots" title="{{item.address}}">{{item.address}}</td>
                        </tr>
                        <tr ng-if="billDataList.length==0">
                            <td colspan="7">暂时没有数据</td>
                        </tr>
                    </tbody>
                </table>
                <div class="page-bar wrapper-y-sm clearfix">
                    <div yb-page-info ng-model="billPageInfo" yb-refresh="billSearch()"></div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix" ng-if="tabFlag.type==1" style="bottom:unset;">
                    <button type="button" class="btn btn-default m-r-sm" ng-click="orderSelectSingle(1)">下一步</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
            <div class="clearfix" ng-show="curStep.val == 1">
                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>基本信息
                    </div>
                    <div class="pull-right" ng-click="isFold=!isFold">
                        <span ng-show="isFold" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                        <span ng-show="!isFold" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                    </div>
                </div>
                <form name="orderForm" class="form-horizontal form-up-tb p-t-xs clearfix" ng-show="!isFold">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">单据号：</label>
                        <div class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{detailInfo.headInfo.businessOrderNo}}">
                            {{detailInfo.headInfo.businessOrderNo}}
                        </div>
                    </div>
                    <div ng-if="tabFlag.type==0">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100">客户名称：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.headInfo.dealerOrgName}}</label>
                        </div>
                    </div>
                    <div ng-if="tabFlag.type==1">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100">收货人：</label>
                            <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.headInfo.receiverName}}</label>
                        </div>
                    </div>

                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>预计送达时间</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.headInfo.estimateArrivalDate"
                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showEstimateDatepicker = !showEstimateDatepicker"
                                is-open="showEstimateDatepicker" close-text="关闭" readonly>
                        </div>
                    </div>

                    <div ng-if="tabFlag.type==0">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span>收货人</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverName" required>
        
                                <div class="msg-block" ng-if="!detailInfo.headInfo.receiverName && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span>联系方式</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverTel" required>
        
                                <div class="msg-block" ng-if="!detailInfo.headInfo.receiverTel && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span>收货地址</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverAddress" required>
        
                                <div class="msg-block" ng-if="!detailInfo.headInfo.receiverAddress && submitted">
                                    <div class="error-msg">
                                        <div class="msg-triangle"></div>
                                        <span>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><i>*</i><span>发货日期</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control date-picker cursor-pointer"
                                    ng-model="detailInfo.headInfo.deliveryTime"
                                    datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                    is-open="showDatepicker" close-text="关闭" readonly required>
                                <div class="msg-block">
                                    <div class="error-msg" ng-if="!detailInfo.headInfo.deliveryTime && submitted">
                                        <div class="msg-triangle"></div>
                                        <span>必填项，请填写</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>运输方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <select class="form-control" ng-model="detailInfo.headInfo.shippingMethodId" required
                                ng-options="item.code as item.name for item in sendMethodList"
                                ng-change="handleShippingChange()">
                                <option value="">请选择运输方式</option>
                            </select>

                            <div class="msg-block" ng-if="!detailInfo.headInfo.shippingMethodId && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>承运商</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.headInfo.carrierOrgName" ng-click="selectLogisticsCom()"
                                required yb-focus readonly>
    
                            <div class="msg-block" ng-if="!detailInfo.headInfo.carrierOrgName && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>数量</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.amount"
                            yb-number-input maxlength="8" disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i ng-if="detailInfo.headInfo.shippingMethodId=='0002'">*</i><span>重量</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.weight" required ng-if="detailInfo.headInfo.shippingMethodId == '0002'">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.weight"  ng-if="detailInfo.headInfo.shippingMethodId !== '0002'" >

                            <div class="msg-block" ng-if="!detailInfo.headInfo.weight && submitted && detailInfo.headInfo.shippingMethodId=='0002'">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>                 
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>木箱/木托捆扎费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.boxTrunkFee" 
                                yb-number-input disable-decimal="false" decimal-places="2" ng-change="handleInitinalCarriage()">
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0001'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>车型</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.model">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>单价</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.unitPrice" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>公里数</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.kilometers" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0002'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>送货上门费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>物流运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0003'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>机场装卸费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>空运费用</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0004'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>德邦运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>物流商编号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                    ng-model="detailInfo.headInfo.expressCode" ng-click="selectExpressCode()"
                                    readonly placeholder="请选择">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>物流单号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.freightNo">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0005'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>铁路运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0006'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>汽运运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                    </div>
                    <div ng-if="detailInfo.headInfo.shippingMethodId=='0007'">
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>顺丰运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                    yb-number-input disable-decimal="false" decimal-places="2">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>物流商编号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                    ng-model="detailInfo.headInfo.expressCode" ng-click="selectExpressCode()"
                                    readonly placeholder="请选择">
                            </div>
                        </div>
                        <div class="form-group col-xs-4 m-b-sm">
                            <label class="col-xs-4 control-label max-w-100"><span>物流单号</span>：</label>
                            <div class="col-xs-8 wrapper-none">
                                <input type="text" class="form-control" ng-model="detailInfo.headInfo.freightNo">
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>备注</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.remark" maxlength="100">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>SN编码</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.snNo" maxlength="100">
                        </div>
                    </div>
                </form>

                <div class="panel-bar clearfix">
                    <div class="pull-left">
                        <i></i>零件信息
                    </div>
                </div>
                <div class="main-area d-b-60" ng-style="{'top': !isFold ? getTopCss() : '110px'}">
                    <div yb-table-fixed class="table-fixed-wrap">
                        <div class="th-scroll-x">
                            <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                                <thead>
                                    <tr>
                                        <th width="40" class="th-check text-center">
                                            <div yb-check-box yb-checked="markInfo.allCheckedMaterial" yb-click="selectAll(detailInfo.materialses, 'Material')"></div>
                                        </th>
                                        <th ng-repeat="itemCol in tableMaterialConfig.tableCol track by $index"
                                            width="{{itemCol.width}}"
                                            ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                            <div yb-thead-operate ng-model="itemCol" target-width="purchaseTbConf.scrollWidth"></div>
                                        </th>
                                    </tr>
                                </thead>
                            </table>
                        </div>
                        <div class="td-scroll" ng-show="detailInfo.materialses.length > 0">
                            <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                                <tbody>
                                    <tr ng-repeat="item in detailInfo.materialses track by $index">
                                        <td width="40" class="text-center">
                                            <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, detailInfo.materialses, 'Material')"></div>
                                        </td>
                                        <td ng-repeat="itemCol in tableMaterialConfig.tableCol" width="{{itemCol.width}}">

                                            <div class="spill-dots" ng-if="!itemCol.input" title="{{item[itemCol.dataField]}}">
                                                {{item[itemCol.dataField]}}
                                            </div>
    
                                            <div ng-if="itemCol.input" class="td-edit pos-r">
                                                <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                    yb-number-input max="item.amount" maxlength="9" disable-decimal="false" decimal-places="2">
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialses.length === 0">暂时没有数据</div>
                    </div>
                </div>
                <div class="bottom-area btn-bar text-center clearfix">
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(orderForm.$valid)">保存</button>
                    <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(orderForm.$valid, 'submit')">提交</button>
                    <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                </div>
            </div>
        </div>
        
        <div tab heading="编辑" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
                <div class="pull-right" ng-click="isFold=!isFold">
                    <span ng-show="isFold" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                    <span ng-show="!isFold" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                </div>
            </div>
            <form name="orderForm" class="form-horizontal form-up-tb p-t-xs clearfix" ng-show="!isFold">
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">单据号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots" title="{{detailInfo.headInfo.businessOrderNo}}">
                        {{detailInfo.headInfo.businessOrderNo}}
                    </div>
                </div>
                <div ng-if="tabFlag.type==0">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">客户名称：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.headInfo.dealerOrgName}}</label>
                    </div>
                </div>
                <div ng-if="tabFlag.type==1">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100">收货人：</label>
                        <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.headInfo.receiverName}}</label>
                    </div>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>预计送达时间</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control date-picker cursor-pointer"
                            ng-model="detailInfo.headInfo.estimateArrivalDate"
                            datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showEstimateDatepicker = !showEstimateDatepicker"
                            is-open="showEstimateDatepicker" close-text="关闭" readonly>
                    </div>
                </div>

                <div ng-if="tabFlag.type==0">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>收货人</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverName" required>
    
                            <div class="msg-block" ng-if="!detailInfo.headInfo.receiverName && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>联系方式</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverTel" required>
    
                            <div class="msg-block" ng-if="!detailInfo.headInfo.receiverTel && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>收货地址</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.receiverAddress" required>
    
                            <div class="msg-block" ng-if="!detailInfo.headInfo.receiverAddress && submitted">
                                <div class="error-msg">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><i>*</i><span>发货日期</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control date-picker cursor-pointer"
                                ng-model="detailInfo.headInfo.deliveryTime"
                                datepicker-popup="{{'yyyy-MM-dd HH:mm'}}" ng-click="showDatepicker = !showDatepicker"
                                is-open="showDatepicker" close-text="关闭" readonly required>
                            <div class="msg-block">
                                <div class="error-msg" ng-if="!detailInfo.headInfo.deliveryTime && submitted">
                                    <div class="msg-triangle"></div>
                                    <span>必填项，请填写</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>运输方式</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <select class="form-control" ng-model="detailInfo.headInfo.shippingMethodId" required
                            ng-options="item.code as item.name for item in sendMethodList"
                            ng-change="handleShippingChange()">
                            <option value="">请选择运输方式</option>
                        </select>

                        <div class="msg-block" ng-if="!detailInfo.headInfo.shippingMethodId && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>承运商</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control light-bg cursor-pointer"
                            ng-model="detailInfo.headInfo.carrierOrgName" ng-click="selectLogisticsCom()"
                            required yb-focus readonly>

                        <div class="msg-block" ng-if="!detailInfo.headInfo.carrierOrgName && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>数量</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.headInfo.amount"
                        yb-number-input maxlength="8" disable-decimal="false" decimal-places="2">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>木箱/木托捆扎费</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.headInfo.boxTrunkFee"
                            yb-number-input disable-decimal="false" decimal-places="2" ng-change="handleInitinalCarriage()">
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0001'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>车型</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.model">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>单价</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.unitPrice" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>公里数</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.kilometers" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0002'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>送货上门费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>物流运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0003'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>机场装卸费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>空运费用</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0004'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>德邦运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>物流商编号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.headInfo.expressCode" ng-click="selectExpressCode()"
                                readonly placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>物流单号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.freightNo">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0005'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>铁路运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0006'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>汽运运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                </div>
                <div ng-if="detailInfo.headInfo.shippingMethodId=='0007'">
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>市内装卸费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.handlingCost" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>包装费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.packagingFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>顺丰运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.logisticFee" ng-change="handleInitinalCarriage()"
                                yb-number-input disable-decimal="false" decimal-places="2">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>初始运费</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.initinalCarriage" ng-disabled="true">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>物流商编号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" name="expressCode" class="form-control light-bg cursor-pointer"
                                ng-model="detailInfo.headInfo.expressCode" ng-click="selectExpressCode()"
                                readonly placeholder="请选择">
                        </div>
                    </div>
                    <div class="form-group col-xs-4 m-b-sm">
                        <label class="col-xs-4 control-label max-w-100"><span>物流单号</span>：</label>
                        <div class="col-xs-8 wrapper-none">
                            <input type="text" class="form-control" ng-model="detailInfo.headInfo.freightNo">
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>备注</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.headInfo.remark" maxlength="100">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>SN编码</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.headInfo.snNo" maxlength="100">
                    </div>
                </div>
            </form>

            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs" ng-if="tabFlag.type==0">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm">添加</button>
                </div>
            </div>
            <div class="main-area d-b-60" ng-style="{'top': !isFold ? getTopCss() : '110px'}">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                            <thead>
                                <tr>
                                    <th width="60">操作</th>
                                    <th ng-repeat="itemCol in tableMaterialConfig.tableCol track by $index"
                                        width="{{itemCol.width}}"
                                        ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                        <div yb-thead-operate ng-model="itemCol" target-width="purchaseTbConf.scrollWidth"></div>
                                    </th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="detailInfo.materialses.length > 0">
                        <table class="table-fixed border-none" width="{{tableMaterialConfig.scrollWidth}}">
                            <tbody>
                                <tr ng-repeat="item in detailInfo.materialses track by $index">
                                    <td width="60">
                                        <button type="button" class="btn btn-operate" ng-click="delMateriel($index)">删除</button>
                                    </td>
                                    <td ng-repeat="itemCol in tableMaterialConfig.tableCol" width="{{itemCol.width}}">

                                        <div class="spill-dots" ng-if="!itemCol.input" title="{{item[itemCol.dataField]}}">
                                            {{item[itemCol.dataField]}}
                                        </div>

                                        <div ng-if="itemCol.input" class="td-edit pos-r">
                                            <input type="text" class="form-control" ng-model="item[itemCol.dataField]"
                                                yb-number-input max="item.amount" maxlength="9" disable-decimal="false" decimal-places="2">
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="detailInfo.materialses.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(orderForm.$valid)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveData(orderForm.$valid, 'submit')">提交</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
        <div tab heading="变更" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
                <div class="pull-right" ng-click="isFold=!isFold">
                    <span ng-show="isFold" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                    <span ng-show="!isFold" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                </div>
            </div>
            <form name="orderForm" class="form-horizontal form-up-tb p-t-xs clearfix" ng-show="!isFold">
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">物流运单号：</label>
                    <div class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.wayBillNo}}</div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">客户名称：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.dealerOrgName}}</label>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100">初始运费：</label>
                    <label class="col-xs-8 control-label p-l-n text-left spill-dots">{{detailInfo.initinalCarriage}}</label>
                </div>

                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>车型</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.model">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><span>公里数</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.kilometers">
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>GPS里程单</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.gpsNo" required>

                        <div class="msg-block" ng-if="!detailInfo.gpsNo && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="form-group col-xs-4 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>变更后运费</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <input type="text" class="form-control" ng-model="detailInfo.afterModifyCarriage" required
                        yb-number-input maxlength="8" disable-decimal="false" decimal-places="2">

                        <div class="msg-block" ng-if="!detailInfo.afterModifyCarriage && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-8 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>变更原因</span>：</label>
                    <div class="col-xs-10 wrapper-none">
                        <textarea class="form-control full" ng-model="detailInfo.modifyReason" required yb-word-count max-size="100"></textarea>

                        <div class="msg-block" ng-if="!detailInfo.modifyReason && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
            </form>

            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveModifyData(orderForm.$valid)">保存</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="saveModifyData(orderForm.$valid, 'submit')">提交</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
        <div tab heading="审核" active="activeFlag[4]" ng-if="activeFlag[4]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
                <div class="pull-right" ng-click="isFold=!isFold">
                    <span ng-show="isFold" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                    <span ng-show="!isFold" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                </div>
            </div>
            <div class="m-t-sm form-up-tb clearfix" ng-show="!isFold">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流运单号：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.wayBillNo||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.dealerOrgName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据号：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.businessOrderNo||'-'}}">
                        {{detailInfo.businessOrderNo||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据状态：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.status|WayBillStatus}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.billType|orderType}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.shippingMethod||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运商：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.carrierOrgName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">初始运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.initinalCarriage||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">变更后运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.afterModifyCarriage||'-'}}</label>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">数量：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.amount||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">木箱/木托捆扎费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.boxTrunkFee||'-'}}</label>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0001'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">车型：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.model||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">单价：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.unitPrice||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">公里数：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.kilometers||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0002'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送货上门费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0003'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">机场装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">空运费用：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0004'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">德邦运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流商编码：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.expressCode||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.freightNo||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0005'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">铁路运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0006'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">汽运运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.shippingMethodId=='0007'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">顺丰运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.logisticFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流商编码：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.expressCode||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.freightNo||'-'}}</label>
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">GPS里程单：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.gpsNo||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.remark||'-'}}">{{detailInfo.remark||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">变更原因：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.modifyReason||'-'}}">{{detailInfo.modifyReason||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.receiverName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系电话：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.receiverTel||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.receiverAddress||'-'}}">{{detailInfo.receiverAddress||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">预计送达时间：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.estimateArrivalDate|YbDate:'yyyy-MM-dd HH:mm:ss'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.deliveryTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">最终运费：</label>
                    <!-- <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.finalCarriage||'-'}}</label> -->
                    <div class="col-xs-8 wrapper-none spill-dots">
                        <input type="text" class="form-control" style="width:50%;height: 50%;" ng-model="detailInfo.finalCarriage">
                    </div>                    
                </div>                
            </div>
            <form name="orderForm" class="form-horizontal form-up-tb p-t-xs clearfix" ng-show="!isFold">
                <div class="form-group col-xs-12 m-b-sm">
                    <label class="col-xs-4 control-label max-w-100"><i>*</i><span>审核意见</span>：</label>
                    <div class="col-xs-8 wrapper-none">
                        <textarea class="form-control full" ng-model="detailInfo.auditRemark" required yb-word-count max-size="100"></textarea>

                        <div class="msg-block" ng-if="!detailInfo.auditRemark && submitted">
                            <div class="error-msg">
                                <div class="msg-triangle"></div>
                                <span>必填项，请填写</span>
                            </div>
                        </div>
                    </div>
                </div>
            </form>

            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit(orderForm.$valid, 'auditPass')">通过</button>
                <button type="button" class="btn btn-primary m-r-sm" ng-click="handleAudit(orderForm.$valid, 'auditReject')">拒绝</button>
                <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
        <div tab heading="详情" active="activeFlag[5]" ng-if="activeFlag[5]">
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>基本信息
                </div>
                <div class="pull-right" ng-click="isFold=!isFold">
                    <span ng-show="isFold" title="展开"><i class="yb-icon ico-angle-double-down"></i></span>
                    <span ng-show="!isFold" title="收起"><i class="yb-icon ico-angle-double-up"></i></span>
                </div>
            </div>
            <div class="m-t-sm form-up-tb clearfix" ng-show="!isFold">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">物流运单号：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.wayBillNo||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">客户名称：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.dealerOrgName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据号：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headInfo.businessOrderNo||'-'}}">
                        {{detailInfo.headInfo.businessOrderNo||'-'}}
                    </label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据状态：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.status|WayBillStatus}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">单据类型：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.billType|orderType}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发运方式：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.shippingMethod||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">承运商：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.carrierOrgName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">初始运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.initinalCarriage||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">变更后运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.afterModifyCarriage||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">最终运费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.finalCarriage||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">数量：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.amount||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">木箱/木托捆扎费：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.boxTrunkFee||'-'}}</label>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0001'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">车型：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.model||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">单价：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.unitPrice||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">公里数：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.kilometers||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0002'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">送货上门费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0003'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">机场装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">空运费用：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0004'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">德邦运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流商编码：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.expressCode||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.freightNo||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0005'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">铁路运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0006'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">汽运运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                </div>

                <div ng-if="detailInfo.headInfo.shippingMethodId=='0007'">
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">包装费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.packagingFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">市内装卸费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.handlingCost||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">顺丰运费：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.logisticFee||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流商编码：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.expressCode||'-'}}</label>
                    </div>
                    <div class="form-group col-xs-3 m-b-sm">
                        <label class="col-xs-4 m-b-n text-right max-w-100">物流单号：</label>
                        <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.freightNo||'-'}}</label>
                    </div>
                </div>

                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">GPS里程单：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.gpsNo||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">备注：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headInfo.remark||'-'}}">{{detailInfo.headInfo.remark||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">变更原因：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headInfo.modifyReason||'-'}}">{{detailInfo.headInfo.modifyReason||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货人：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.receiverName||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">联系电话：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.receiverTel||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">收货地址：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headInfo.receiverAddress||'-'}}">{{detailInfo.headInfo.receiverAddress||'-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">发货日期：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{detailInfo.headInfo.deliveryTime|YbDate:'yyyy-MM-dd HH:mm:ss'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">预计送达时间：</label>
                    <label class="col-xs-8 wrapper-none spill-dots">{{(detailInfo.headInfo.estimateArrivalDate|YbDate:'yyyy-MM-dd HH:mm:ss') || '-'}}</label>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">SN编码：</label>
                    <label class="col-xs-8 wrapper-none spill-dots" title="{{detailInfo.headInfo.snNo||'-'}}">{{detailInfo.headInfo.snNo || '-'}}</label>
                </div>
            </div>
            <div tabset type="sub-tab">
                <div tab heading="关联单据" active="subTabFlag[0]">
                    <div class="main-area d-b-60" ng-style="{'top': !isFold ? getTopCss() : '110px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th>业务单号</th>
                                            <th>销售单号</th>
                                            <th>采购单号</th>
                                            <th>备注</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.linkBills track by $index">
                                            <td class="spill-dots" title="{{item.businessOrder}}">{{item.businessOrder}}</td>
                                            <td class="spill-dots" title="{{item.saleBillNo}}">{{item.saleBillNo}}</td>
                                            <td class="spill-dots" title="{{item.purchaseNo}}">{{item.purchaseNo}}</td>
                                            <td class="spill-dots" title="{{item.remark}}">{{item.remark}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="零件信息" active="subTabFlag[1]">
                    <div class="main-area d-b-60" ng-style="{'top': !isFold ? getTopCss() : '110px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th>零件号</th>
                                            <th>零件中文名</th>
                                            <th>数量</th>
                                            <th>单据号</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.linkBillDetails track by $index">
                                            <td class="spill-dots" title="{{item.materailsNo}}">{{item.materailsNo}}</td>
                                            <td class="spill-dots" title="{{item.materialsDesc}}">{{item.materialsDesc}}</td>
                                            <td class="spill-dots" title="{{item.amount}}">{{item.amount}}</td>
                                            <td class="spill-dots" title="{{item.businessOrder}}">{{item.businessOrder}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
                <div tab heading="发运详情" active="subTabFlag[2]">
                    <div class="main-area d-b-60" ng-style="{'top': !isFold ? getTopCss() : '110px'}">
                        <div yb-table-fixed class="table-fixed-wrap">
                            <div class="th-scroll-x">
                                <table class="table-fixed border-none" width="100%">
                                    <thead>
                                        <tr>
                                            <th>单据号</th>
                                            <th>零件号</th>
                                            <th>零件中文名</th>
                                            <th>单位</th>
                                            <th>本次发运数量</th>
                                        </tr>
                                    </thead>
                                </table>
                            </div>
                            <div class="td-scroll">
                                <table class="table-fixed border-none" width="100%">
                                    <tbody>
                                        <tr ng-repeat="item in detailInfo.materialses track by $index">
                                            <td class="spill-dots" title="{{item.businessOrderNo}}">{{item.businessOrderNo}}</td>
                                            <td class="spill-dots" title="{{item.materialsNo}}">{{item.materialsNo}}</td>
                                            <td class="spill-dots" title="{{item.materialsDesc}}">{{item.materialsDesc}}</td>
                                            <td class="spill-dots" title="{{item.unit}}">{{item.unit}}</td>
                                            <td class="spill-dots" title="{{item.currentOrderAmount}}">{{item.currentOrderAmount}}</td>
                                        </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center border-t clearfix">
                <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
            </div>
        </div>
    </div>
</div>
